home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Features_of_the_Shell / Editing_Shortcuts < prev    next >
Text File  |  1992-02-26  |  5KB  |  116 lines

  1.             Useful Key Combinations
  2.  
  3. All these key combinations can be used while you edit a line in the Shell
  4. window.  Just hold down the first key while pressing the second, then 
  5. release both.  For example, Ctrl C means hold the Ctrl key, press the
  6. C key then release both.  It is best to release the letter key first to 
  7. avoid typing unwanted characters into the window.
  8.  
  9. So let's kick off with the key combinations and their result...
  10.  
  11. Left Cursor    This is one of the simplest keys.  You don't have to hold a
  12.         qualifier key first, (for example Ctrl or Shift).  This
  13.         key moves the cursor one character left.  If the cursor is
  14.         already at the leftmost point, it has no effect.
  15.  
  16. Right Cursor    Same as left cursor, but moves to the right.
  17.  
  18. Shift-Left    This moves the cursor to the extreme left of the current 
  19.         string (i.e. the first character).
  20.  
  21. Shift-Right    And this one moves the cursor to the far right of the string
  22.  
  23. Backspace    This is the left facing arrow on the top left of the 
  24.         keyboard.  It deletes the character to the left of the 
  25.         cursor.  If there is no character then no effect is 
  26.         generated.
  27.  
  28. Del        This deletes the character highlighted by the cursor
  29.  
  30. Ctrl-H        This is the shortcut for backspace.  It's hardly a shortcut,
  31.         I'm sure you will agree, but it is useful if your backspace
  32.         key is broken!  (It's true, my numeric keypad 0 key hasn't
  33.         worked for at least three months and I have not had it
  34.         repaired!)
  35.  
  36. Ctrl-M        This is a "shortcut" for Return (or Enter).  See above for
  37.         uses.
  38.  
  39. Ctrl-J        This prints the linefeed character.  This is like a
  40.         Return press, but it does not execute a command.  It just
  41.         prints a blank line.  Try it in the Shell window.
  42.  
  43. Ctrl-W        This is a useful command.  It deletes the word to the left
  44.         of the cursor.  Hold it down and you can quickly delete a 
  45.         full line of text.
  46.  
  47. Ctrl-X        This deletes the whole line.
  48.  
  49. Ctrl-K        This deletes all the characters from the current cursor
  50.         position to the end of the line...
  51.  
  52. Ctrl-Y        ... and this command puts them back (in a different place, 
  53.         if you want!).  Ctrl-K and Ctrl-Y form a simple Cut/Paste
  54.         operation.
  55.  
  56. Ctrl-U        This is the opposite of Ctrl-K.  It removes all characters
  57.         from the cursor leftward.  (??)
  58.  
  59. The Shell has a history feature.  No, not Kings' and Queens' names,
  60. but it remembers all the commands you have typed in (well the last few).  It
  61. has a 2K buffer to hold them in (don't worry if you don't understand, it is
  62. simply an area of memory).  You can use the buffer by pushing the cursor up
  63. and down keys.  try tying a few lines into the Shell window.  There is no 
  64. need to type real commands, just a load of garbage.  Now use the up cursor 
  65. key to scroll through the commands you did - the most recent one first.  And
  66. cursor down moves you back again.  This is good for repetitive tasks like
  67. copying files to the same place.  You just type the copy part once then move
  68. backwards and edit the lines.  plus, you can search for the most recent 
  69. occurrence of a command by typing the first part of it then pressing 
  70. Shift-Up Arrow or Ctrl-R.  This is good if you know you did a really 
  71. long Copy command a while ago and don't feel like re-typing it.  (I know you
  72. could just go through the lines one by one, but this way is faster and more
  73. fun!)  Finally, you can press Shift-Down Cursor to move to the final line
  74. in the history buffer - a blank one.
  75.  
  76. Plus, there are also some keys you can press at other times.  For example,
  77. when the Shell is producing output, perhaps after a Dir command.  These are
  78.  
  79. Space bar    (or any other printable character, like a letter, or Escape)
  80.         This halts the output of the current Shell window until the
  81.         character you typed is deleted with backspace.  An example:
  82.  
  83.             Dir Df0:
  84.  
  85.         A listing of Df0:'s contents zoom by.  In the small CLI
  86.         window we are using you will never have the chance to read
  87.         it all!  So, type the command again (or, if you are learning
  88.         anything at all, use the history buffer) and as soon as you
  89.         hit Return, press any key that prints a character.  Space
  90.         is best.  The listing stops.  You need fast reactions, 
  91.         though!  Now delete the space and quickly hit a key again.  
  92.         Now a bit more is shown.  Continue until the whole list has
  93.         been shown.
  94.  
  95. Backspace    Resumes scrolling after it has been stopped.
  96.  
  97. Ctrl-C        This Breaks the current process.  Use it to stop a command,
  98.         like Format.  It must be repeatedly pressed to work, this
  99.         ensures that the break registers.  Some programs, for 
  100.         example SimGen and OctaMEDplayer, use this combination to
  101.         stop them running.
  102.  
  103. Ctrl-D        This stops execution of the current script file (assuming 
  104.         one is running!).  Use this to break into a disk while it is
  105.         loading - the startup-sequence is broken into when you use 
  106.         the command.  Remember to repeatedly press it.
  107.  
  108. Ctrl-S    Suspends output, the same as typing a character, but more flashy.
  109.         
  110. Ctrl-Q        Resumes output after Ctrl-S has suspended it.
  111.  
  112. If you type in a Shell command while output is being given, then press 
  113. return, the command is executed once output has completed.  When you stop
  114. output with a character, you are using this effect.  Because the character
  115. you type is deleted, no command is entered.
  116.